<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8" />
    <title>Insert title here</title>
</head>
<body>
Hello, <shiro:principal/>, how are you today?
<shiro:hasRole name="admin">
    <br />I'm fine, 我拥有管理员角色--</span>
</shiro:hasRole>
<shiro:hasRole name="user1">
    <br />I'm fine, 我拥有用户角色--"></span>
</shiro:hasRole>
<button shiro:hasPermission="sys-user-add">
    按钮
</button>
<p shiro:hasPermission="sys-user-add">
    拥有用户添加权限
</p>
</body>
</html>